package ${packageName}.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${packageName}.model.entity.${classInfo.className};

/**
 * ${classInfo.classComment}服务
 *
 * @author ${authorName}
 */
public interface I${classInfo.className}Service {

    /**
     * 分页查询${classInfo.classComment}
     *
     * @param page 分页对象
     * @return 分页对象
     */
    IPage get${classInfo.className}Page(Page page, ${classInfo.className} ${classInfo.className?uncap_first});

    /**
     * 通过ID查询${classInfo.classComment}
     *
     * @param id ID
     * @return 字典信息
     */
    ${classInfo.className} get${classInfo.className}ById(${classInfo.pkClass} id);

    /**
     * 添加${classInfo.classComment}
     *
     * @param ${classInfo.className?uncap_first} ${classInfo.classComment}
     * @return string id
     */
    String save${classInfo.className}(${classInfo.className} ${classInfo.className?uncap_first});

    /**
     * 修改${classInfo.classComment}
     *
     * @param ${classInfo.className?uncap_first} ${classInfo.classComment}
     * @return success/false
     */
    boolean update${classInfo.className}(${classInfo.className} ${classInfo.className?uncap_first});

    /**
     * 删除${classInfo.classComment}
     *
     * @param id ID
     * @return Response
     */
    void remove${classInfo.className}ById(${classInfo.pkClass} id);

}
